Optimal. Leaf size=39 \[ \frac {2 \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {-a d+b d x}}\right )}{b \sqrt {d}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {65, 223, 212}
\begin {gather*} \frac {2 \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b d x-a d}}\right )}{b \sqrt {d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 212
Rule 223
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {a+b x} \sqrt {-a d+b d x}} \, dx &=\frac {2 \text {Subst}\left (\int \frac {1}{\sqrt {-2 a d+d x^2}} \, dx,x,\sqrt {a+b x}\right )}{b}\\ &=\frac {2 \text {Subst}\left (\int \frac {1}{1-d x^2} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {-a d+b d x}}\right )}{b}\\ &=\frac {2 \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {-a d+b d x}}\right )}{b \sqrt {d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 39, normalized size = 1.00 \begin {gather*} \frac {2 \tanh ^{-1}\left (\frac {\sqrt {-a d+b d x}}{\sqrt {d} \sqrt {a+b x}}\right )}{b \sqrt {d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in
optimal.
time = 15.37, size = 76, normalized size = 1.95 \begin {gather*} \frac {-I \text {meijerg}\left [\left \{\left \{-\frac {1}{2},-\frac {1}{4},0,\frac {1}{4},\frac {1}{2},1\right \},\left \{\right \}\right \},\left \{\left \{-\frac {1}{4},\frac {1}{4}\right \},\left \{-\frac {1}{2},0,0,0\right \}\right \},\frac {a^2 \text {exp\_polar}\left [2 I \text {Pi}\right ]}{b^2 x^2}\right ]+\text {meijerg}\left [\left \{\left \{\frac {1}{4},\frac {3}{4}\right \},\left \{\frac {1}{2},\frac {1}{2},1,1\right \}\right \},\left \{\left \{0,\frac {1}{4},\frac {1}{2},\frac {3}{4},1,0\right \},\left \{\right \}\right \},\frac {a^2}{b^2 x^2}\right ]}{4 \text {Pi}^{\frac {3}{2}} b \sqrt {d}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(75\) vs.
\(2(31)=62\).
time = 0.17, size = 76, normalized size = 1.95
method | result | size |
default | \(\frac {\sqrt {\left (b x +a \right ) \left (b d x -a d \right )}\, \ln \left (\frac {b^{2} d x}{\sqrt {b^{2} d}}+\sqrt {b^{2} d \,x^{2}-a^{2} d}\right )}{\sqrt {b x +a}\, \sqrt {b d x -a d}\, \sqrt {b^{2} d}}\) | \(76\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 39, normalized size = 1.00 \begin {gather*} \frac {\log \left (2 \, b^{2} d x + 2 \, \sqrt {b^{2} d x^{2} - a^{2} d} b \sqrt {d}\right )}{b \sqrt {d}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.31, size = 108, normalized size = 2.77 \begin {gather*} \left [\frac {\log \left (2 \, b^{2} d x^{2} + 2 \, \sqrt {b d x - a d} \sqrt {b x + a} b \sqrt {d} x - a^{2} d\right )}{2 \, b \sqrt {d}}, -\frac {\sqrt {-d} \arctan \left (\frac {\sqrt {b d x - a d} \sqrt {b x + a} b \sqrt {-d} x}{b^{2} d x^{2} - a^{2} d}\right )}{b d}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 13.18, size = 88, normalized size = 2.26 \begin {gather*} \frac {{G_{6, 6}^{6, 2}\left (\begin {matrix} \frac {1}{4}, \frac {3}{4} & \frac {1}{2}, \frac {1}{2}, 1, 1 \\0, \frac {1}{4}, \frac {1}{2}, \frac {3}{4}, 1, 0 & \end {matrix} \middle | {\frac {a^{2}}{b^{2} x^{2}}} \right )}}{4 \pi ^{\frac {3}{2}} b \sqrt {d}} - \frac {i {G_{6, 6}^{2, 6}\left (\begin {matrix} - \frac {1}{2}, - \frac {1}{4}, 0, \frac {1}{4}, \frac {1}{2}, 1 & \\- \frac {1}{4}, \frac {1}{4} & - \frac {1}{2}, 0, 0, 0 \end {matrix} \middle | {\frac {a^{2} e^{2 i \pi }}{b^{2} x^{2}}} \right )}}{4 \pi ^{\frac {3}{2}} b \sqrt {d}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.01, size = 47, normalized size = 1.21 \begin {gather*} -\frac {2 \ln \left |\sqrt {-2 a d+d \left (a+b x\right )}-\sqrt {d} \sqrt {a+b x}\right |}{\sqrt {d} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.22, size = 56, normalized size = 1.44 \begin {gather*} -\frac {4\,\mathrm {atan}\left (\frac {b\,\left (\sqrt {b\,d\,x-a\,d}-\sqrt {-a\,d}\right )}{\sqrt {-b^2\,d}\,\left (\sqrt {a+b\,x}-\sqrt {a}\right )}\right )}{\sqrt {-b^2\,d}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________